package com.imooc.diveinspringboot.mybatis.mapper;

import com.imooc.diveinspringboot.mybatis.entity.ChannelEntity;
import java.util.List;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

/**
 * @author Chris
 * @date 2019/05/08 15:05
 * @since 1.0.0
 */
public interface ChannelMapper {
    @Select("select * from t_channel_list")
    @Results({
            @Result(property = "id", column = "id")
            , @Result(property = "channelName", column = "channel_name")
            , @Result(property = "interfaceId", column = "interface_id")
            , @Result(property = "factId", column = "fact_id")
    })
    List<ChannelEntity> getAll();
}
